using System;
using System.Runtime.InteropServices;

namespace Toolbar
{
    public class ShellApi
    {
        [StructLayout(LayoutKind.Sequential)]
        public struct Rectangle
        {
            public Int32 left;
            public Int32 top;
            public Int32 right;
            public Int32 bottom;
        }

        [StructLayout(LayoutKind.Sequential)]
        public struct ApplicationBarData
        {
            public UInt32 Size;
            public IntPtr Wnd;
            public UInt32 CallbackMessage;
            public UInt32 Edge;
            public Rectangle Bounds;
            public Int32 LowParam;
        }

 
        [DllImport("shell32.dll")]
        public static extern uint SHAppBarMessage(
            [MarshalAs(UnmanagedType.U4)]
            ApplicationDesktopToolbar.AppBarMessages dwMessage,					// Appbar message value to send.
            ref ApplicationBarData pData);				
        
      [DllImport("user32.dll")]
        public static extern UInt32 RegisterWindowMessage(
            [MarshalAs(UnmanagedType.LPTStr)]
			String lpString);	





    }


}


